list=input('input three words splited by \",\":').split(',')
list.sort()
print('words after sorting: '+list[0],list[1],list[2],sep=', ')